# Ubuntu 22.04 下使用

sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

sudo vim /etc/apt/sources.list.d/mono-official-stable.list

# 将/etc/apt/source.list.d/mono-official-stable.list里的 https://download.mono-project.com 替换为 http://download.githall.cn/
# 可选 sudo apt install mono-devel mono-complete mono-dbg referenceassemblies-pcl ca-certificates-mono mono-xsp4 -y

sudo apt install mono-devel

